<?php

if (!isset($pagename)) $pagename = "about";
$pagessql = mysql_query("SELECT * FROM pages WHERE pages_name = '$pagename'");
$pages_sqlarray = mysql_fetch_array($pagessql);
$output->addcontent(
"<h3>$pages_sqlarray[pages_title]</h3>
$pages_sqlarray[pages_content]", "main");
$output -> addtitle($pages_sqlarray['pages_title']);

?>